#define _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>
void print(int arr[], int right)
{
	int num = 0;
	for (num = 0; num <= right; num++)
	{

		arr[num] = 0;
	}


}
void  reserve(int arr[], int left, int right)
{
	while (left <right)
	{
		int tep = arr[left];
		arr[left] = arr[right];
		arr[right] = tep;
		left++;
		right--;

	}

}




int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int left = 0;
	int right = sizeof(arr) / sizeof(arr[0]) - 1;
	//print(arr,right);
	reserve(arr, left, right);
	int num = 0;
	for (num = 0; num <= right; num++)
	{
		printf("%d ",arr[num]);
	}




	return 0;
}